<?php

$hash = '5ae687d3fa844603c0db52e81d6d03bd';

?>
<table align="center" width="100%" cellspacing="1">
    <tr>
        <td style="vertical-align: top;">
            <table align="center" width="100%" cellspacing="0">
                <tr>
                    <th colspan="5"><?php echo ( isset( $this->vars['l_profile'] ) ) ? $this->vars['l_profile'] : ''; ?></th>
                </tr>
                <tr>
                    <td style="padding-left: 10px;padding-right: 10px;padding-top: 4px;padding-bottom: 4px;text-align: center;width: 140px;" class="border_left border_right border_bottom">
                        <div>
                            <img src="<?php echo ( isset( $this->vars['avatar'] ) ) ? $this->vars['avatar'] : ''; ?>" />
                        </div>
                    </td>
                    <td colspan="5" style="vertical-align: top;padding-left: 10px;padding-right: 10px;padding-top: 4px;padding-bottom: 4px;" class="border_right border_bottom">
                        <div style="font-weight: bold;font-size: 22px;"><?php echo ( isset( $this->vars['username'] ) ) ? $this->vars['username'] : ''; ?></div>
                        <?php if( $this->if_states['group_image'] == 1 ) { unset( $this->if_states['group_image'] ); ?>
                        <div><img src="<?php echo ( isset( $this->vars['group_image'] ) ) ? $this->vars['group_image'] : ''; ?>" alt="<?php echo ( isset( $this->vars['group_alt'] ) ) ? $this->vars['group_alt'] : ''; ?>" title="<?php echo ( isset( $this->vars['group_alt'] ) ) ? $this->vars['group_alt'] : ''; ?>" /></div>
                        <?php } ?>
                        <?php if( $this->if_states['show_rank'] == 1 ) { unset( $this->if_states['show_rank'] ); ?>
                        <div style="color: #252525;font-size: 11px;"><?php echo ( isset( $this->vars['rank_title'] ) ) ? $this->vars['rank_title'] : ''; ?></div>
                        <div><img src="<?php echo ( isset( $this->vars['rank_image'] ) ) ? $this->vars['rank_image'] : ''; ?>" alt="<?php echo ( isset( $this->vars['rank_title'] ) ) ? $this->vars['rank_title'] : ''; ?>" title="<?php echo ( isset( $this->vars['rank_title'] ) ) ? $this->vars['rank_title'] : ''; ?>" /></div>
                        <?php } ?>
                        <br />
                        <div style="font-size: 12px;font-family: arial;"><b><?php echo ( isset( $this->vars['l_group'] ) ) ? $this->vars['l_group'] : ''; ?></b>: <?php echo ( isset( $this->vars['group_name'] ) ) ? $this->vars['group_name'] : ''; ?></div>
                        <div style="font-size: 12px;font-family: arial;"><b><?php echo ( isset( $this->vars['l_joined'] ) ) ? $this->vars['l_joined'] : ''; ?></b>: <?php echo ( isset( $this->vars['join_date'] ) ) ? $this->vars['join_date'] : ''; ?></div>
                    </td>
                </tr>
                <tr>
                    <td class="ex_sh border_right border_left border_bottom" colspan="5"><?php echo ( isset( $this->vars['l_contact'] ) ) ? $this->vars['l_contact'] : ''; ?></td>
                </tr>
                <tr>
                    <td style="padding-left: 4px;padding-right: 4px;padding-top: 4px;padding-bottom: 4px;font-size: 12px;font-weight: bold;font-family: arial;" class="border_bottom border_left border_right">
                        <a href="<?php echo ( isset( $this->vars['a_send_pm'] ) ) ? $this->vars['a_send_pm'] : ''; ?>"><img src="./templates/default/icons/email.png" /> <?php echo ( isset( $this->vars['l_send_pm'] ) ) ? $this->vars['l_send_pm'] : ''; ?></a>
                    </td>
                    <td style="padding-left: 4px;padding-right: 4px;padding-top: 4px;padding-bottom: 4px;font-size: 12px;font-weight: bold;font-family: arial;" class="border_bottom border_right">
                        <a href="<?php echo ( isset( $this->vars['a_send_email'] ) ) ? $this->vars['a_send_email'] : ''; ?>"><img src="./templates/default/icons/email.png" /> <?php echo ( isset( $this->vars['l_send_email'] ) ) ? $this->vars['l_send_email'] : ''; ?></a>
                    </td>
                </tr>
                <tr>
                    <td class="ex_sh border_right border_left border_bottom" colspan="5"><?php echo ( isset( $this->vars['l_others'] ) ) ? $this->vars['l_others'] : ''; ?></td>
                </tr>
                <tr>
                    <td style="padding-left: 4px;padding-right: 4px;padding-top: 4px;padding-bottom: 4px;font-size: 12px;font-weight: bold;font-family: arial;" class="border_bottom border_left border_right">
                        <a href="<?php echo ( isset( $this->vars['a_add_friend'] ) ) ? $this->vars['a_add_friend'] : ''; ?>"><img src="./templates/default/icons/user_add.png" /> <?php echo ( isset( $this->vars['l_add_friend'] ) ) ? $this->vars['l_add_friend'] : ''; ?></a>
                    </td>
                    <td style="padding-left: 4px;padding-right: 4px;padding-top: 4px;padding-bottom: 4px;font-size: 12px;font-weight: bold;font-family: arial;" class="border_bottom border_right">
                        &nbsp;
                    </td>
                </tr>
            </table>
            
            <div class="small_spacer"></div>
            
            <?php if( $this->if_states['show_comments'] == 1 ) { unset( $this->if_states['show_comments'] ); ?>
            <table align="center" width="100%" cellspacing="0" id="comments">
                <?php if( isset( $this->loops_runs['comments'] ) ) { ?>
                <tr>
                    <th colspan="5"><?php echo ( isset( $this->vars['l_comments'] ) ) ? $this->vars['l_comments'] : ''; ?></th>
                </tr>
                
                <?php for( $i = 1; $i <= $this->loops_runs['comments']; $i++ ) { $loop_comments = $this->loops_var['comments'][ $i ]; ?>
                <tr>
                    <td style="background-color: #f4ead7;padding-left: 4px;padding-right: 4px;padding-top: 4px;padding-bottom: 4px;font-size: 12px;font-family: arial;" class="border_left border_right">
                        <div style="float: left;"><b><a href="<?php echo ( isset( $loop_comments['author_link'] ) ) ? $loop_comments['author_link'] : ''; ?>"><?php echo ( isset( $loop_comments['comment_author'] ) ) ? $loop_comments['comment_author'] : ''; ?></a></b>  <?php echo ( isset( $this->vars['l_wrote'] ) ) ? $this->vars['l_wrote'] : ''; ?>:</div>
                        <div style="float: right";>
                            <?php if( $this->loop_if_states['comments']['can_delete'][ $i ] == 1 ) { ?>
                            <a style="color: red;" href="<?php echo ( isset( $loop_comments['a_delete'] ) ) ? $loop_comments['a_delete'] : ''; ?>"><img src="./templates/default/icons/delete.png" /><?php echo ( isset( $this->vars['l_delete_comment'] ) ) ? $this->vars['l_delete_comment'] : ''; ?></a> |
                            <?php } ?>
                            <?php echo ( isset( $loop_comments['comment_date'] ) ) ? $loop_comments['comment_date'] : ''; ?>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td style="padding-left: 4px;padding-right: 4px;padding-top: 4px;padding-bottom: 4px;font-size: 11px;font-family: arial;" class="border_bottom border_left border_right">
                        <?php echo ( isset( $loop_comments['comment_message'] ) ) ? $loop_comments['comment_message'] : ''; ?>
                    </td>
                </tr>
                <tr>
                    <td class="ex_sh border_right border_left border_bottom" colspan="5"></td>
                </tr>
                <?php } ?>
                <?php if( $this->if_states['comments_pages'] == 1 ) { unset( $this->if_states['comments_pages'] ); ?>
                <tr>
                    <th colspan="5"><?php echo ( isset( $this->vars['pagination'] ) ) ? $this->vars['pagination'] : ''; ?></th>
                </tr>
                <?php } ?>
                <?php } ?>
                <?php if( $this->if_states['add_comment'] == 1 ) { unset( $this->if_states['add_comment'] ); ?>
                <tr>
                    <th colspan="5"><?php echo ( isset( $this->vars['l_add_comment'] ) ) ? $this->vars['l_add_comment'] : ''; ?></th>
                </tr>
                <tr>
                    <td id="add_comment" style="padding-left: 4px;padding-right: 4px;padding-top: 4px;padding-bottom: 4px;font-size: 11px;font-family: arial;" class="border_bottom border_left border_right">
                        <?php if( $this->if_states['errors'] == 1 ) { unset( $this->if_states['errors'] ); ?>
                        <div id="error" style="margin-top: 1px;">
                            <div class="errorHead"><?php echo ( isset( $this->vars['l_error_occured'] ) ) ? $this->vars['l_error_occured'] : ''; ?></div>
                            <div class="errorBody"><?php echo ( isset( $this->vars['error_message'] ) ) ? $this->vars['error_message'] : ''; ?></div>
                        </div>
                        <div class="small_spacer"></div>
                        <?php } ?>
                        
                        <form action="#add_comment" method="POST">
                        <textarea name="comment" style="width: 100%;height: 70px;"><?php echo ( isset( $this->vars['comment_message'] ) ) ? $this->vars['comment_message'] : ''; ?></textarea>
                        <br />
                        <input type="submit" name="addComment" value="<?php echo ( isset( $this->vars['l_add_comment'] ) ) ? $this->vars['l_add_comment'] : ''; ?>" />
                        </form>
                    </td>
                </tr>
                <?php } ?>
                
            </table>
            <?php } ?>
        </td>
        <td style="width: 340px;vertical-align: top;">
            <table align="center" width="100%" cellspacing="0">
                <tr>
                    <th colspan="2"><?php echo ( isset( $this->vars['l_forum_activity'] ) ) ? $this->vars['l_forum_activity'] : ''; ?></th>
                </tr>
                <tr>
                    <td class="border_left border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;width: 120px;">
                        <b><?php echo ( isset( $this->vars['l_posts'] ) ) ? $this->vars['l_posts'] : ''; ?></b>:
                    </td>
                    <td class="border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;">
                        <?php echo ( isset( $this->vars['user_posts'] ) ) ? $this->vars['user_posts'] : ''; ?><br />
                        (<b><?php echo ( isset( $this->vars['posts_per_day'] ) ) ? $this->vars['posts_per_day'] : ''; ?></b> <?php echo ( isset( $this->vars['l_posts_per_day'] ) ) ? $this->vars['l_posts_per_day'] : ''; ?>)
                    </td>
                </tr>
                <tr>
                    <td class="border_left border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;width: 120px;">
                        <b><?php echo ( isset( $this->vars['l_last_activity'] ) ) ? $this->vars['l_last_activity'] : ''; ?></b>:
                    </td>
                    <td class="border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;">
                        <?php echo ( isset( $this->vars['last_login'] ) ) ? $this->vars['last_login'] : ''; ?>
                    </td>
                </tr>
                <tr>
                    <td class="border_left border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;width: 120px;">
                        <b><?php echo ( isset( $this->vars['l_user_status'] ) ) ? $this->vars['l_user_status'] : ''; ?></b>:
                    </td>
                    <td class="border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;">
                        <?php echo ( isset( $this->vars['user_status'] ) ) ? $this->vars['user_status'] : ''; ?>
                    </td>
                </tr>
            </table>
         
            <table align="center" width="100%" cellspacing="0">
                <tr>
                    <td class="ex_sh border_right border_left border_bottom" colspan="5"><?php echo ( isset( $this->vars['l_personal_info'] ) ) ? $this->vars['l_personal_info'] : ''; ?></td>
                </tr>
                <tr>
                    <td class="border_left border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;width: 120px;">
                        <b><?php echo ( isset( $this->vars['l_name'] ) ) ? $this->vars['l_name'] : ''; ?></b>:
                    </td>
                    <td class="border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;">
                        <div id="ajax_name">
                            <div style="float: left;"><span id="element_name"><?php echo ( isset( $this->vars['user_name'] ) ) ? $this->vars['user_name'] : ''; ?></span></div>
                            <div style="float: right;"><a onClick="makeInput( 'name' )"><img src="./templates/default/icons/page_white_edit.png" /></a></div>
                        </div>
                        <div id="input_name" style="display: none;">
                            <input type="text" class="reg" style="width: 150px;vertical-align: top;" id="form_name" value="<?php echo ( isset( $this->vars['user_name'] ) ) ? $this->vars['user_name'] : ''; ?>" />
                            <a onClick="saveProfileData( 'name', 'name=' + document.getElementById( 'form_name' ).value );"><img src="./templates/default/icons/accept.png" /></a><a onclick="declineInput( 'name' );"><img src="./templates/default/icons/delete.png" /></a>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="border_left border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;width: 120px;">
                        <b><?php echo ( isset( $this->vars['l_localization'] ) ) ? $this->vars['l_localization'] : ''; ?></b>:
                    </td>
                    <td class="border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;">
                        <div id="ajax_localization">
                            <div style="float: left;"><span id="element_localization"><?php echo ( isset( $this->vars['user_localization'] ) ) ? $this->vars['user_localization'] : ''; ?></span></div>
                            <div style="float: right;"><a onClick="makeInput( 'localization' )"><img src="./templates/default/icons/page_white_edit.png" /></a></div>
                        </div>
                        <div id="input_localization" style="display: none;">
                            <input type="text" class="reg" style="width: 150px;vertical-align: top;" id="form_localization" value="<?php echo ( isset( $this->vars['user_localization'] ) ) ? $this->vars['user_localization'] : ''; ?>" />
                            <a onClick="saveProfileData( 'localization', 'localization=' + document.getElementById( 'form_localization' ).value );"><img src="./templates/default/icons/accept.png" /></a><a onclick="declineInput( 'localization' );"><img src="./templates/default/icons/delete.png" /></a>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="border_left border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;width: 120px;">
                        <b><?php echo ( isset( $this->vars['l_hobby'] ) ) ? $this->vars['l_hobby'] : ''; ?></b>:
                    </td>
                    <td class="border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;">
                        <div id="ajax_hobby">
                            <div style="float: left;"><span id="element_hobby"><?php echo ( isset( $this->vars['user_hobby'] ) ) ? $this->vars['user_hobby'] : ''; ?></span></div>
                            <div style="float: right;"><a onClick="makeInput( 'hobby' )"><img src="./templates/default/icons/page_white_edit.png" /></a></div>
                        </div>
                        <div id="input_hobby" style="display: none;">
                            <input type="text" class="reg" style="width: 150px;vertical-align: top;" id="form_hobby" value="<?php echo ( isset( $this->vars['user_hobby'] ) ) ? $this->vars['user_hobby'] : ''; ?>" />
                            <a onClick="saveProfileData( 'hobby', 'hobby=' + document.getElementById( 'form_hobby' ).value );"><img src="./templates/default/icons/accept.png" /></a><a onclick="declineInput( 'hobby' );"><img src="./templates/default/icons/delete.png" /></a>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="border_left border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;width: 120px;">
                        <b><?php echo ( isset( $this->vars['l_profession'] ) ) ? $this->vars['l_profession'] : ''; ?></b>:
                    </td>
                    <td class="border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;">
                        <div id="ajax_profession">
                            <div style="float: left;"><span id="element_profession"><?php echo ( isset( $this->vars['user_profession'] ) ) ? $this->vars['user_profession'] : ''; ?></span></div>
                            <div style="float: right;"><a onClick="makeInput( 'profession' )"><img src="./templates/default/icons/page_white_edit.png" /></a></div>
                        </div>
                        <div id="input_profession" style="display: none;">
                            <input type="text" class="reg" style="width: 150px;vertical-align: top;" id="form_profession" value="<?php echo ( isset( $this->vars['user_profession'] ) ) ? $this->vars['user_profession'] : ''; ?>" />
                            <a onClick="saveProfileData( 'profession', 'profession=' + document.getElementById( 'form_profession' ).value );"><img src="./templates/default/icons/accept.png" /></a><a onclick="declineInput( 'profession' );"><img src="./templates/default/icons/delete.png" /></a>
                        </div>
                    </td>
                </tr>
            </table>
            
            <table align="center" width="100%" cellspacing="0">
                <tr>
                    <td class="ex_sh border_right border_left border_bottom" colspan="5"><?php echo ( isset( $this->vars['l_extra_fields'] ) ) ? $this->vars['l_extra_fields'] : ''; ?></td>
                </tr>
                <?php for( $i = 1; $i <= $this->loops_runs['extra_fields']; $i++ ) { $loop_extra_fields = $this->loops_var['extra_fields'][ $i ]; ?>
                <tr>
                    <td class="border_left border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;width: 120px;">
                        <b><?php echo ( isset( $loop_extra_fields['field_name'] ) ) ? $loop_extra_fields['field_name'] : ''; ?></b>:
                    </td>
                    <td class="border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 12px;">
                        <?php echo ( isset( $loop_extra_fields['field_value'] ) ) ? $loop_extra_fields['field_value'] : ''; ?>
                    </td>
                </tr>
                <?php } ?>
            </table>
            
            <table align="center" width="100%" cellspacing="0">
                <tr>
                    <td class="ex_sh border_right border_left border_bottom" colspan="5"><?php echo ( isset( $this->vars['l_friends'] ) ) ? $this->vars['l_friends'] : ''; ?></td>
                </tr>
                <?php for( $i = 1; $i <= $this->loops_runs['friends']; $i++ ) { $loop_friends = $this->loops_var['friends'][ $i ]; ?>
                <tr>
                    <td class="border_left border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 14px;">
                        <a href="<?php echo ( isset( $loop_friends['friend_link'] ) ) ? $loop_friends['friend_link'] : ''; ?>"><?php echo ( isset( $loop_friends['friend_name'] ) ) ? $loop_friends['friend_name'] : ''; ?></a> <?php if( $this->loop_if_states['friends']['delete_friend'][ $i ] == 1 ) { ?><a href="<?php echo ( isset( $loop_friends['a_friend_remove'] ) ) ? $loop_friends['a_friend_remove'] : ''; ?>"><img src="./templates/default/icons/user_delete.png" alt="<?php echo ( isset( $this->vars['l_remove_friend'] ) ) ? $this->vars['l_remove_friend'] : ''; ?>" title="<?php echo ( isset( $this->vars['l_remove_friend'] ) ) ? $this->vars['l_remove_friend'] : ''; ?>" /></a><?php } ?>
                    </td>
                </tr>
                <?php } ?>
                <?php if( !isset( $this->loops_runs['friends'] ) ) { ?>
                <tr>
                    <td class="border_left border_right border_bottom" style="padding: 4px;font-family: arial;font-size: 14px;">
                        <i><?php echo ( isset( $this->vars['l_no_friends'] ) ) ? $this->vars['l_no_friends'] : ''; ?></i>
                    </td>
                </tr>
                <?php } ?>
            </table>
        </td>
    </tr>
</table>